﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SPDataModel[]>" %>
<%@ Import Namespace="webcspa.Models"%>

<asp:Content ContentPlaceHolderID="TitleContent" runat="server">
	Данные из таблицы (Хранимая процедура p_REG_NODES)
</asp:Content>

<asp:Content ContentPlaceHolderID="MainContent" runat="server">
<div>   
         <center>           
               &nbsp;&nbsp;<a href="<%=Url.Action("Run", "Data")%>" id="A1">Данный из таблицы</a>
         </center>
       </div>

    <table>
            <tr>
                  <td>
                      NODE
                  </td>
                  <td>
                      U
                  </td>
                  <td>
                      FAZA
                  </td>
                  <td>
                      PN
                  </td>
                  <td>
                      QN
                  </td>
                  <td>
                      PN_NOM
                  </td>
                  <td>
                      TM_QN
                  </td>
                  <td>
                      CXH_TIP
                  </td>
                  <td>
                      SYN_PART_ID
                  </td>
                  <td>
                      TM_U
                  </td>
                  <td>
                      TM_PN
                  </td>
                  <td>
                      TM_QN
                  </td>
                  <td>
                      TM_PG_SUM
                  </td>
                  <td>
                      TM_QG_SUM
                  </td>
                  <td>
                      ES_PG_SUM
                  </td>
                  <td>
                      ES_PG_MIN
                  </td>
                  <td>
                      ES_PG_MAX
                  </td>
                  <td>
                      ES_QG_SUM
                  </td>
                  <td>
                      ES_QG_MIN
                  </td>
                  <td>
                      ES_QG_MAX
                  </td>
                  <td>
                      LY
                  </td>
                  <td>
                      TM_KONTROL_UST
                  </td>
                  <td>
                      QR_SH
                  </td>
                  <td>
                      TM_PN_GR
                  </td>
                  <td>
                      TM_QN_GR
                  </td>
                  <td>
                      TM_PG_SUM_GR
                  </td>
                  <td>
                      TM_QG_SUM_GR
                  </td>
                  <td>
                      VES1
                  </td>
                  <td>
                      P_SN
                  </td>
                  <td>
                      Q_BTR
                  </td>
                  <td>
                      Q_SN
                  </td>
                  <td>
                      VES2
                  </td>
                  <td>
                      NK
                  </td>
             </tr>
        <%  for (int i = 0; i < Model.Length; i++) {%>
            <tr>
                  <td>
                      <%=Model[i].NODE%>
                  </td>
                  <td>
                      <%=Model[i].U%>
                  </td>
                  <td>
                      <%=Model[i].FAZA%>
                  </td>
                  <td>
                      <%=Model[i].PN%>
                  </td>
                  <td>
                      <%=Model[i].QN%>
                  </td>
                  <td>
                      <%=Model[i].PN_NOM%>
                  </td>
                  <td>
                      <%=Model[i].TM_QN%>
                  </td>
                  <td>
                      <%=Model[i].CXH_TIP%>
                  </td>
                  <td>
                      <%=Model[i].SYN_PART_ID%>
                  </td>
                  <td>
                      <%=Model[i].TM_U%>
                  </td>
                  <td>
                      <%=Model[i].TM_PN%>
                  </td>
                  <td>
                      <%=Model[i].TM_QN%>
                  </td>
                  <td>
                      <%=Model[i].TM_PG_SUM%>
                  </td>
                  <td>
                      <%=Model[i].TM_QG_SUM%>
                  </td>
                  <td>
                      <%=Model[i].ES_PG_SUM%>
                  </td>
                  <td>
                      <%=Model[i].ES_PG_MIN%>
                  </td>
                  <td>
                      <%=Model[i].ES_PG_MAX%>
                  </td>
                  <td>
                      <%=Model[i].ES_QG_SUM%>
                  </td>
                  <td>
                      <%=Model[i].ES_QG_MIN%>
                  </td>
                  <td>
                      <%=Model[i].ES_QG_MAX%>
                  </td>
                  <td>
                      <%=Model[i].LY%>
                  </td>
                  <td>
                      <%=Model[i].TM_KONTROL_UST%>
                  </td>
                  <td>
                      <%=Model[i].QR_SH%>
                  </td>
                  <td>
                      <%=Model[i].TM_PN_GR%>
                  </td>
                  <td>
                      <%=Model[i].TM_QN_GR%>
                  </td>
                  <td>
                      <%=Model[i].TM_PG_SUM_GR%>
                  </td>
                  <td>
                      <%=Model[i].TM_QG_SUM_GR%>
                  </td>
                  <td>
                      <%=Model[i].VES1%>
                  </td>
                  <td>
                      <%=Model[i].P_SN%>
                  </td>
                  <td>
                      <%=Model[i].Q_BTR%>
                  </td>
                  <td>
                      <%=Model[i].Q_SN%>
                  </td>
                  <td>
                      <%=Model[i].VES2%>
                  </td>
                  <td>
                      <%=Model[i].NK%>
                  </td>
            </tr>    
        <%  } %>
    </table>
</asp:Content>